package io.renren.modules.sys.service.impl;

import io.renren.common.dto.SongSetSong;
import io.renren.common.utils.Query;
import io.renren.modules.sys.entity.SongEntity;
import io.renren.modules.sys.entity.SongsetSongEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SongsetDao;
import io.renren.modules.sys.entity.SongsetEntity;
import io.renren.modules.sys.service.SongsetService;



@Service("songsetService")
public class SongsetServiceImpl implements SongsetService {
	@Autowired
	private SongsetDao songsetDao;
	
	@Override
	public SongsetEntity queryObject(Long id){
		return songsetDao.queryObject(id);
	}
	
	@Override
	public List<SongsetEntity> queryList(Map<String, Object> map){
		return songsetDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return songsetDao.queryTotal(map);
	}
	
	@Override
	public void save(SongsetEntity songset){
		songsetDao.save(songset);
	}
	
	@Override
	public void update(SongsetEntity songset){
		songsetDao.update(songset);
	}
	
	@Override
	public void delete(Long id){
		songsetDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		songsetDao.deleteBatch(ids);
	}

    @Override
    public List<SongEntity> getSongBySetId(Long id) {
        return songsetDao.getSongBySetId(id);
    }

    @Override
    public void deleteSongSetSong(Integer songsetId) {
        songsetDao.deleteSongSetSong(songsetId);
    }

    @Override
    public void addSongSetSongBatch(List<SongsetSongEntity> l) {
        songsetDao.addSongSetSongBatch(l);
    }

    @Override
    public List<SongsetEntity> queryListRecommendSort(Query query) {
        return songsetDao.queryListRecommendSort(query);
    }

    @Override
    public int queryTotalRecommendSort(Query query) {
        return songsetDao.queryTotalRecommendSort(query);
    }

    @Override
    public List<SongsetEntity> queryListNewSort(Query query) {
        return songsetDao.queryListNewSort(query);
    }

    @Override
    public int queryTotalNewSort(Query query) {
        return songsetDao.queryTotalNewSort(query);
    }
}
